package com.ruoyi.iot.domain;


import com.ruoyi.iot.constant.DbDataTypeEnum;
import lombok.Data;

import java.io.Serializable;

@Data
public class MetaDataDict implements Serializable {
    private boolean isPk=false;
    /**
     * 字段code
     */
    private String key;

    /**
     * 字段说明
     */
    private String comment;

    private  String oldKey;


    /**
     * 字段类型
     */
    private DbDataTypeEnum valueType;

    public MetaDataDict(String key, String comment, DbDataTypeEnum type){
        this.key=key;
        this.comment=comment;
        this.valueType=type;
    }
    public MetaDataDict(String key,String comment,DbDataTypeEnum type,boolean isPk){
        this.key=key;
        this.comment=comment;
        this.valueType=type;
        this.isPk=isPk;
    }
    public MetaDataDict(String key, String comment, DbDataTypeEnum type,String oldKey){
        this.key=key;
        this.comment=comment;
        this.valueType=type;
        this.oldKey=oldKey;
    }
}
